package com.server.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.server.model.all.user.entity.RoleMenuEntity;
import com.server.user.service.RoleMenuService;
import com.server.user.mapper.RoleMenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoleMenuServiceImpl extends ServiceImpl<RoleMenuMapper, RoleMenuEntity> implements RoleMenuService {

    @Resource
    private RoleMenuMapper roleMenuMapper;

    @Override
    public List<String> findPathsByRoleId(List<Long> roleId) {
        return roleMenuMapper.findPathsByRoleId(roleId);
    }
}
